package esiag.pds.receivers;

import java.util.Calendar;


import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

import esiag.pds.beans.Parameters;


public class ReplicationClient {
	
	public static void main(String[] args) {
		
		 XmlBeanFactory factory=new XmlBeanFactory(new ClassPathResource("Parameters.xml"));
		 Parameters param=factory.getBean("parameters",Parameters.class);
        ReplicationReceiver rr=new ReplicationReceiver(param.getPort());
        
			rr.start(param.getReplicationFrequency());
	}
}
